# $Id: PKGBUILD 66793 2012-02-28 18:46:39Z kkeen $
# Maintainer: Kyle Keen <keenerd@gmail.com>
# Contributor: Douglas Soares de Andrade <douglas@archlinux.org>
# Contributor: Ryan Coyner <rcoyner@gmail.com>
# Contributor: Daniel J Griffiths <ghost1227@archlinux.us>

pkgname=pyglet
pkgver=1.1.4
pkgrel=4
pkgdesc="A cross-platform windowing and multimedia library for Python"
arch=('any')
url="http://pyglet.org/"
license=('BSD')
depends=('python2')
optdepends=('avbin: provides audio&video support')
source=(http://pyglet.googlecode.com/files/${pkgname}-${pkgver}.tar.gz)
md5sums=('b2363642dc3832e95dc4e63a6793467f')

build() { 
	cd ${srcdir}/${pkgname}-${pkgver}
	python2 setup.py build
}

package() {
	cd ${srcdir}/${pkgname}-${pkgver}
	python2 setup.py install --root=${pkgdir} --optimize=0
        find "$pkgdir/" -name '*.pyc' -delete
	install -D -m644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
}
